package com.heima.media.listene;

import com.heima.media.task.ArticleTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @BelongsProject: heima-leadnews
 * @BelongsPackage: com.heima.media.listene
 * @Author: wangjian
 * @CreateTime: 2022-07-03  14:52
 * @Description: TODO
 * @Version: 1.0
 */
@Component
public class ArticleDelayListener {
    @Autowired
    private ArticleTask articleTask;
    @PostConstruct
    public void handleMessage() throws Exception {
        articleTask.receiveMesasge();
    }

}
